package com.syf.controller;

import com.syf.model.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Authorization;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 苏耀奋
 * @create 2021-08-02 14:42
 */
@RestController
@Api(tags = "会员系统接口的测试")
public class TestController {

    //Postman进行测试: http://localhost:8090/swagger-ui.html#/ 【莫名其妙没权限: 给了token请求头了】
    @ApiOperation(value = "这是一个测试接口",authorizations = {@Authorization("Authorization")})
    @GetMapping("/test")
    public R<String> test(){
        return R.ok("测试成功");
    }

}
